package com.erp.remote.purchase;

import com.erp.util.AjaxResult;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author :qinya
 * @PackageName:com.erp.remote.purchase
 * @ClassName: PurchaseReturnRemote
 * @Description: TODO
 * @date : 2025/7/21,22:14
 */
@RequestMapping("/return")
public interface PurchaseReturnRemote {

    /**
     * 购货退货单审核和反审核接口
     *
     * @param
     * @return
     */
    @PostMapping("/editState")
    AjaxResult editPurchaseReturnState(@RequestBody Map<String, Object> params);

    /**
     * 根据公司id查询购货退货单数量
     *
     * @param companyId
     * @return
     */
    @GetMapping("/count")
    Integer selectPurchaseReturnCount(@RequestParam("companyId") Integer companyId);

}
